﻿<%@ Page Title="" Language="VB" MasterPageFile="~/App/Master/App.master" AutoEventWireup="false" CodeFile="Categorize.aspx.vb" Inherits="App_Categorize" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CphHead" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CphMainContent" runat="Server">
    <asp:ScriptManagerProxy runat="server">
        <Scripts>
            <asp:ScriptReference Path="~/js/jquery/js/jquery.jstree.js" />
            <asp:ScriptReference Path="Categorize.aspx.js" />
        </Scripts>
    </asp:ScriptManagerProxy>

    <script type="text/javascript">

        //        var tree_type_id = <% = Me.Items("tree_type_id")%>;
        //        var root_folder_id = <% = Me.Items("RootFolderID")%>;
        //        var webservice_url = '<% = Me.ResolveClientUrl("~/Webservice/Folder.asmx/") %>';
        //        var icons_path = '<% = Me.ResolveClientUrl("~/style/App/img/Icons/")%>';

    </script>


    <div class="row-fluid">

        <div class="cat-fol-start">
            <!-- titolo -->
            <div class="top-bar-cat-fol">
                <div class="top-bar-title">follower categorization wizard</div>
                <div>
                    <a href="#" class="a-icona7-bianca tooltip" title="Nel titolo il testo toltip"></a>
                </div>

                <!-- fine titolo -->
                <!-- contenuti -->
                <div class="cat-fol-start-tec-text">
                    choose one or more pre-set categories
                </div>

                <asp:ListView runat="server" ID="ListCatWiz" ClientIDMode="Predictable">
                    <ItemTemplate>
                        <div class="cat-fol-start-tec-title">
                            <%# eval("folder") %>
                        </div>
                        <div class="cat-fol-start-tec">
                            <ul class="cat-fol-start-list">
                                <asp:ListView runat="server" ID="ListQueryWiz" OnItemCommand="ListCatWiz_ItemCommand" DataSource='<%# DB.TAB.Categorize.BY.Categorize.Folder_Id(Eval("id")).ToList%>' DataKeyNames="id" ClientIDMode="Predictable">
                                    <ItemTemplate>
                                        <li>
                                            <%--CommandArgument='<%# Eval("id")%>' OnClick="ListCatWiz_ItemCommand" --%>
                                            <asp:LinkButton runat="server" ID="BtnCat" CssClass="bottone-start-list"   ><%# Eval("description")%> 
                                                <acronym>
                                                <div class="acronym-image-top"></div>
                                                <div><%# Eval("query")%> </div>
                                                </acronym>
                                            </asp:LinkButton>
                                        </li>
                                    </ItemTemplate>
                                </asp:ListView>
                            </ul>
                        </div>

                    </ItemTemplate>

                </asp:ListView>

<%--                <div class="cat-fol-start-tec-title">
                    Technology
                </div>
                <div class="cat-fol-start-tec">
                    <ul class="cat-fol-start-list">
                        <li>
                            <a class="bottone-start-list" href="#">Social Media</a>
                        </li>
                        <li>
                            <a class="bottone-start-list-active" href="#">Marketing</a>
                        </li>
                        <li>
                            <a class="bottone-start-list" href="#">Web
                            <acronym>
                            	<div class="acronym-image-top"></div>
                            	<div>website</div>
                            	<div>website</div>
                            	<div>website</div> 
                                <div>website</div>
                                <div>website</div>
                                <div>website</div>
                            </acronym>
                            </a>
                        </li>
                        <li>
                            <a class="bottone-start-list" href="#">Web Design</a>
                        </li>
                    </ul>
                </div>
                <div class="cat-fol-start-tec-title">
                    Business
                </div>
                <div class="cat-fol-start-tec">
                    <ul class="cat-fol-start-list">
                        <li>
                            <a class="bottone-start-list" href="#">Social Media</a>
                        </li>
                        <li>
                            <a class="bottone-start-list-active" href="#">Marketing</a>
                        </li>
                        <li>
                            <a class="bottone-start-list" href="#">Web
                            <acronym>
                            	<div class="acronym-image-top"></div>
                            	<div>website</div>
                            	<div>website</div>
                            	<div>website</div> 
                                <div>website</div>
                                <div>website</div>
                                <div>website</div>
                            </acronym>
                            </a>
                        </li>
                        <li>
                            <a class="bottone-start-list" href="#">Web Design
                            </a>
                        </li>
                        <li>
                            <a class="bottone-start-list" href="#">Social Media</a>
                        </li>
                        <li>
                            <a class="bottone-start-list-active" href="#">Marketing</a>
                        </li>
                        <li>
                            <a class="bottone-start-list" href="#">Web
                            <acronym>
                            	<div class="acronym-image-top"></div>
                            	<div>website</div>
                            	<div>website</div>
                            	<div>website</div> 
                                <div>website</div>
                                <div>website</div>
                                <div>website</div>
                            </acronym>
                            </a>
                        </li>
                        <li>
                            <a class="bottone-start-list" href="#">Web Design</a>
                        </li>
                        <li>
                            <a class="bottone-start-list" href="#">Social Media</a>
                        </li>
                        <li>
                            <a class="bottone-start-list-active" href="#">Marketing</a>
                        </li>
                        <li>
                            <a class="bottone-start-list" href="#">Web
                            <acronym>
                            	<div class="acronym-image-top"></div>
                            	<div>website</div>
                            	<div>website</div>
                            	<div>website</div> 
                                <div>website</div>
                                <div>website</div>
                                <div>website</div>
                            </acronym>
                            </a>
                        </li>
                        <li>
                            <a class="bottone-start-list" href="#">Web Design</a>
                        </li>
                    </ul>
                </div>
--%>

                <div class="cat-fol-start-bottom">
                    <ul class="cat-fol-start-status">
                        <li class="enquiries-flag">
                            <input id="c1" type="checkbox" name="c1">
                            <label for="c1">
                                <span></span>
                            </label>
                        </li>
                        <li class="enquiries-testo">
                            <div class="cat-fol-en-query">
                                <div class="en-query-testo">keep updated </div>
                            </div>
                        </li>
                        <li>
                            <a class="bottone-add" href="#">Save</a>
                        </li>
                    </ul>
                </div>
                <!-- fine contenuti -->
            </div>
            <!-- fine box 1 -->


        </div>

    </div>

    <div class="row-fluid">

        <div class="cat-fol-enquiries">
            <!-- titolo -->
            <div class="top-bar">
                enquiries
			<div>
                <a href="#" class="a-icona7 tooltip" title="Nel titolo il testo toltip"></a>
            </div>
            </div>
            <!-- fine titolo -->
            <!-- contenuto -->
            <div class="well-cat-fol-enquiries">
                <div class="cat-fol-enquiries-left">
                    <ul class="cat-fol-enquiries-add">
                        <li><a class="bottone-add" id="add_folder" href="#">ADD</a> </li>
                        <li><a class="bottone-add" id="rename_folder" href="#">RENAME</li>
                        <li><a class="bottone-add" id="remove_folder" href="#">REMOVE</a></li>

                    </ul>
                    <div id="demo1" style="height: auto; overflow: auto;"></div>

                </div>


                <div class="cat-fol-enquiries-query">
                    <asp:UpdatePanel ID="UpPEnquiry" runat="server" UpdateMode="Conditional">
                        <ContentTemplate>
                            <asp:Button ID="BtnReload_UpPEnquiry" runat="server" Style="display: none;" Text="Reload" />
                            <asp:HiddenField ID="HidSelectFolderId" runat="server" Value="0" />

                            <div>
                                <ul class="enquiries-status">
                                    <li class="enquiries-flag">
                                        <input type="checkbox" id="ChkAllQuery">
                                        <label for="ChkAllQuery"><span></span></label>
                                    </li>

                                    <li class="enquiries-title">
                                        <div class="cat-fol-en-query">
                                            <div class="en-query-testo">category </div>
                                            <div class="en-query-add">
                                                <asp:LinkButton runat="server" ID="BtnAddQuery" CssClass="bottone-add">ADD</asp:LinkButton>
                                            </div>
                                        </div>
                                    </li>
                                    <li class="enquiries-icone">
                                        <div class="cat-fol-en-icone">
                                        </div>
                                    </li>
                                </ul>
                            </div>

                            <asp:ListView runat="server" ID="ListQuery">
                                <ItemTemplate>

                                    <div>
                                        <ul class="enquiries-status">
                                            <li class="enquiries-flag">
                                                <span id='<%# Eval("id") %>' data-type='<%# mDB.Folder.DataType.QUERY%>' class="jstree-draggable" onmousedown="onmousedown_chk_item($(this));" onmouseup="onmouseup_chk_item($(this));" onclick="return false;">
                                                    <input type="checkbox" id="ChkItem<%# Eval("id") %>">
                                                    <label for="ChkItem<%# Eval("id") %>"><span></span></label>
                                                </span>
                                            </li>
                                            <li class="enquiries-testo">
                                                <div class="cat-fol-en-query">
                                                    <div class="en-query-testo"><%# Eval("description")%> </div>
                                                </div>
                                            </li>
                                            <li class="enquiries-icone">
                                                <div class="en-icone">
                                                    <div>
                                                        <asp:LinkButton runat="server" CommandName="ANALIZE" CssClass="a-icona-lente"></asp:LinkButton>

                                                    </div>
                                                    <div><a class="a-icona-cat-aggiorna" href="#"></a></div>
                                                    <div>
                                                        <asp:LinkButton runat="server" CommandName="EDIT_ROW" ID="BtnEditRow" CssClass="a-icona-matita"></asp:LinkButton>
                                                    </div>
                                                    <div>
                                                        <asp:LinkButton runat="server" CommandName="DELETE_ROW" ID="BtnDeleteRow" OnClientClick="return confirm('Delete records?')" CssClass="a-icona-chiudi"></asp:LinkButton>
                                                    </div>
                                                </div>
                                            </li>
                                        </ul>
                                    </div>

                                </ItemTemplate>
                                <EditItemTemplate>

                                    <div>
                                        <ul class="enquiries-status-input">
                                            <li class="enquiries-flag">
                                                <input type="checkbox" id="c0" name="c0">
                                                <label for="c0"></label>
                                            </li>
                                            <li class="enquiries-testo">
                                                <div class="cat-fol-en-query">
                                                    <div class="en-input-name">
                                                        <asp:TextBox runat="server" ID="TxtDescription" Text='<%# Eval("Description") %>'></asp:TextBox>
                                                        <asp:TextBox runat="server" ID="TxtQuery" Text='<%# Eval("query")%>' TextMode="MultiLine" CssClass="cat-fol-text-box"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </li>
                                            <li class="enquiries-post"></li>
                                            <li class="enquiries-icone">
                                                <div class="en-icone">
                                                    <div>
                                                        <asp:LinkButton runat="server" CommandName="ANALIZE_EDIT" CssClass="a-icona-lente"></asp:LinkButton>

                                                    </div>
                                                    <div>
                                                        <asp:LinkButton runat="server" CommandName="UPDATE_ROW" CssClass="a-icona-disco"></asp:LinkButton>
                                                    </div>
                                                    <div><a class="en-vuoto" href="#"></a></div>
                                                    <div>
                                                        <asp:LinkButton runat="server" CommandName="CANCEL_ROW_EDIT" CssClass="a-icona-chiudi"></asp:LinkButton>
                                                    </div>
                                                </div>
                                            </li>
                                        </ul>
                                    </div>


                                </EditItemTemplate>
                            </asp:ListView>

                        </ContentTemplate>
                    </asp:UpdatePanel>








                </div>
            </div>


            <!-- fine contenuto -->
        </div>

        <div class="cat-fol-act">
            <!-- titolo -->
            <div class="top-bar">
                active categories
			<div>
                <a href="#" class="a-icona7 tooltip" title="Tips Icon"></a>
            </div>
            </div>
            <!-- fine titolo -->
            <!-- contenuti -->
            <div class="well-cat-fol-act">
                <div class="well-cat-fol-act-head">
                    category (followers)
                </div>
                <div class="well-cat-fol-act-line">
                    category 1
                <ul class="cat-fol-active-status">
                    <li class="enquiries-icone">
                        <div class="en-icone">
                            <div>
                                <a class="a-icona-lente" href="#"></a>
                            </div>
                        </div>
                    </li>
                    <li class="enquiries-icone">
                        <div class="en-icone">
                            <div>
                                <a class="a-icona-chiudi-categories" href="#"></a>
                            </div>
                        </div>
                    </li>
                </ul>
                </div>
                <div class="well-cat-fol-act-line">
                    business
                <ul class="cat-fol-active-status">
                    <li class="enquiries-icone">
                        <div class="en-icone">
                            <div>
                                <a class="a-icona-lente" href="#"></a>
                            </div>
                        </div>
                    </li>
                    <li class="enquiries-icone">
                        <div class="en-icone">
                            <div>
                                <a class="a-icona-chiudi-categories" href="#"></a>
                            </div>
                        </div>
                    </li>
                </ul>
                </div>

            </div>
            <!-- fine contenuti -->
            <!-- fine box 3 -->
        </div>
    </div>


    <asp:Panel runat="server">

        <div class="row">

            <%--            <div class="span4">
                <div class="wrapper">
                    <h5 class="title titolo-cassetto">Folder                    </h5>
                    <div class="wrapper-inner">
                        <div>
                            <input type="button" id="add_folder" value="ADD" style="" />
                            <input type="button" id="rename_folder" value="RENAME" style="" />
                            <input type="button" id="remove_folder" value="REMOVE" style="" />
                        </div>
                        <div id="demo1" style="height: 400px; overflow: auto;">
                        </div>
                    </div>
                </div>
            </div>
            <div class="span4">
                <div class="wrapper">
                    <h5 class="title  titolo-cassetto">Category</h5>
                    <div class="wrapper-inner">
                        <asp:UpdatePanel ID="UpPElaborations" runat="server" UpdateMode="Conditional">
                            <ContentTemplate>
                                <asp:Button ID="BtnReload_UpPElaborations" runat="server" Style="display: none;" Text="Reload" />
                                <asp:HiddenField ID="HidSelectFolderId" runat="server" Value="0" />
                                <div id="Grid_check" style="height: 400px; overflow: auto;">
                                    <asp:GridView ID="GridElaborations" runat="server" Width="100%" AutoGenerateColumns="False" CssClass="summary-results" ShowHeader="true" AllowSorting="true" AllowPaging="True">
                                        <Columns>
                                            <asp:TemplateField HeaderText="" HeaderStyle-Width="10px">
                                                <HeaderTemplate>
                                                    <input id="ChkAllElab" type="checkbox" value="" />
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                    <span id='<%# Eval("id") %>' data-type='<%# mDB.Folder.DataType.CATEGORIZE %>' class="jstree-draggable" onmousedown="onmousedown_chk_elab($(this));" onmouseup="onmouseup_chk_elab($(this));" onclick="return false;">
                                                        <asp:CheckBox runat="server" ID="ChkElab" />
                                                    </span>
                                                </ItemTemplate>
                                                <ItemStyle HorizontalAlign="Center" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="" HeaderStyle-Width="20px" ItemStyle-HorizontalAlign="Center">
                                                <ItemTemplate>
                                                    <div style="">
                                                        <asp:ImageButton runat="server" Width="20" ToolTip="seleziona la ricerca" CommandName="LOAD" ImageUrl="~/style/App/img/icons/check.png"></asp:ImageButton>
                                                    </div>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Categoria" HeaderStyle-Width="">
                                                <ItemStyle HorizontalAlign="Left" />
                                                <ItemTemplate>
                                                    <div style="font-size: 11px; font-weight: bold;">
                                                        <asp:Label runat="server" Text='<%# Eval("description") %>'></asp:Label>
                                                    </div>
                                                    <div style="font-size: 11px;">
                                                        <asp:Label runat="server" Text='<%# Eval("query") %>'></asp:Label>
                                                    </div>
                                                </ItemTemplate>
                                                <EditItemTemplate>
                                                    description:
                                            <asp:TextBox runat="server" ID="TxtDescription" Width="97%" Text='<%# Eval("Description") %>'></asp:TextBox>
                                                    <br />
                                                    query:
                                            <asp:TextBox runat="server" ID="TxtQuery" Width="97%" Text='<%# Eval("query") %>' Rows="3" TextMode="MultiLine"></asp:TextBox>
                                                </EditItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="" HeaderStyle-Width="65" ItemStyle-HorizontalAlign="Right">
                                                <ItemTemplate>
                                                    <asp:ImageButton runat="server" ID="IbtFollow" Width="20" ToolTip="FOLLOW" CommandName="FOLLOW" ImageUrl="~/style/App/img/icons/list-add.png"></asp:ImageButton>
                                                    <asp:ImageButton runat="server" ToolTip="edit" Width="20" CommandName="EDIT_ROW" ImageUrl="~/style/App/img/icons/icon_edit.png"></asp:ImageButton>
                                                    <asp:ImageButton runat="server" ToolTip="delete" Width="20" CommandName="DELETE_ROW" ImageUrl="~/style/App/img/icons/delete.png"></asp:ImageButton>
                                                </ItemTemplate>
                                                <EditItemTemplate>
                                                    <asp:ImageButton runat="server" ToolTip="cancel" Width="20" CommandName="CANCEL_ROW_EDIT" ImageUrl="~/style/App/img/icons/UndoButton.png"></asp:ImageButton>
                                                    <asp:ImageButton runat="server" ToolTip="update" Width="20" CommandName="UPDATE_ROW" ImageUrl="~/style/App/img/icons/save.png"></asp:ImageButton>
                                                </EditItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                        <AlternatingRowStyle CssClass="AlternatingRow Padding2" />
                                        <HeaderStyle CssClass="Header" />
                                        <RowStyle CssClass="Row Padding2" />
                                        <SelectedRowStyle CssClass="SelectedRow Padding2" />
                                        <EditRowStyle CssClass="EditRow Padding2" />
                                    </asp:GridView>
                                </div>
                            </ContentTemplate>
                        </asp:UpdatePanel>

                    </div>

                </div>
            </div>--%>
            <div class="span4">
                <div class="wrapper">
                    <h5 class="title  titolo-cassetto">Analize</h5>
                    <div class="wrapper-inner">
                        <asp:UpdatePanel ID="UpPFollowQuery" runat="server" UpdateMode="Conditional">
                            <ContentTemplate>
                                <asp:Button ID="BtnUpdateFollQuery" runat="server" Text="UPDATE" />
                                <asp:Button ID="BtnRemoveFollQuery" runat="server" Text="REMOVE ALL" />

                                <div style="height: 400px; overflow: auto;">
                                    <asp:GridView ID="GridFollowQuery" runat="server" Width="100%" AutoGenerateColumns="False" CssClass="summary-results" ShowHeader="true" AllowSorting="true" AllowPaging="True">
                                        <Columns>
                                            <asp:TemplateField HeaderText="" HeaderStyle-Width="40px" ItemStyle-HorizontalAlign="Center">
                                                <ItemTemplate>
                                                    <asp:ImageButton runat="server" ID="IbtUnFollow" Width="20" ToolTip="Elimina analisi" CommandName="UNFOLLOW" ImageUrl="~/style/App/img/icons/UndoButton.png"></asp:ImageButton>
                                                    <asp:ImageButton runat="server" Width="20" ToolTip="Effettua analisi" CommandName="CATEGORIZE" ImageUrl="~/style/App/img/icons/view-refresh.png"></asp:ImageButton>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="categoria" HeaderStyle-Width="">
                                                <ItemTemplate>
                                                    <asp:Label runat="server" Text='<%# eval("description") %>'></asp:Label>
                                                    (<asp:Label runat="server" Text='<%# eval("account_count") %>'></asp:Label>)
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="acc" HeaderStyle-Width="">
                                                <ItemTemplate>
                                                    <asp:TextBox runat="server" Text='<%# eval("accuracy_total_account") %>' ID="TxtAccuracyTotalAccount" Width="30px"></asp:TextBox>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                        <AlternatingRowStyle CssClass="AlternatingRow Padding2" />
                                        <HeaderStyle CssClass="Header" />
                                        <EditRowStyle CssClass="EditRow" />
                                        <SelectedRowStyle CssClass="SelectedRow" />
                                        <RowStyle CssClass="Row Padding2" />
                                    </asp:GridView>
                                </div>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </div>

                </div>
            </div>

        </div>


        <asp:UpdatePanel ID="UpPCerca" runat="server" UpdateMode="Conditional">
            <ContentTemplate>

                <div class="row">

                    <%--                    <div class="span8">
                        <div class="wrapper">
                            <h5 class="title titolo-cassetto">Analisys
                            </h5>
                            <div class="wrapper-inner">
                                <asp:Button runat="server" ID="Btncerca" Text="AVVIA ANALISI" Style="font-size: 18px; border: 3px solid #FF0000;" />
                                <asp:Button runat="server" ID="BtnSaveNew" Text="CREA NUOVA CATEGORIA" Style="font-size: 18px; border: 3px solid #FF0000;" />
                                <asp:Label runat="server" ID="LblMessCat" ViewStateMode="Disabled" Style="font-size: 13px; color: Red;" Text="" /><br />
                               
                            </div>
                        </div>
                    </div>--%>


                    <asp:Label runat="server" ID="LblUserFound" Text="" />

                    <div class="span4">
                        <div class="wrapper">
                            <h5 class="title titolo-cassetto">Response
                            </h5>
                            <div class="wrapper-inner">
                                <asp:Label runat="server" ID="LblExec" Text="" />

                            </div>
                        </div>
                    </div>

                </div>


                <div class="row">

                    <div class="span12">
                        <div class="wrapper">
                            <h5 class="title">users
                            </h5>
                            <div class="wrapper-inner">
                                <asp:GridView ID="GridUsers" runat="server" CssClass="summary-results" AutoGenerateColumns="False" AllowSorting="true" AllowPaging="True" Width="100%">
                                    <Columns>
                                        <%--                                <asp:TemplateField HeaderText="id" SortExpression="id">
                                    <ItemTemplate>
                                        <asp:Label runat="server" Text='<%# eval("id") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>--%>
                                        <asp:TemplateField HeaderText="Nome" SortExpression="fullname">
                                            <ItemTemplate>
                                                <asp:HyperLink runat="server" NavigateUrl='<%# "https://twitter.com/" & eval("username") %>' Target="_blank">
                                <asp:Label runat="server" Text='<%# eval("fullname") %>'></asp:Label>
                                                </asp:HyperLink>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="image">
                                            <ItemTemplate>
                                                <asp:HyperLink runat="server" NavigateUrl='<%# eval("url") %>' Target="_blank">
                                            <img src="<%# eval("avatar") %>" />
                                                </asp:HyperLink>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="description">
                                            <ItemTemplate>
                                                <asp:Label runat="server" Text='<%# eval("description") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="location">
                                            <ItemTemplate>
                                                <asp:Label runat="server" Text='<%# eval("location") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="follower" ItemStyle-HorizontalAlign="Center">
                                            <ItemTemplate>
                                                <asp:Label runat="server" Text='<%# ui.print.num0(eval("follower_count")) %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="post" ItemStyle-HorizontalAlign="Center">
                                            <ItemTemplate>
                                                <asp:Label runat="server" Text='<%# ui.print.num0(eval("Post_Count")) %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Accuracy" SortExpression="accuracy" ItemStyle-HorizontalAlign="Center">
                                            <ItemTemplate>
                                                <asp:Label Font-Bold="true" runat="server" Text='<%# ui.print.num0(eval("accuracy")) %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Post trovati" ItemStyle-HorizontalAlign="Center">
                                            <ItemTemplate>
                                                <asp:Label runat="server" Text='<%# ui.print.num0(eval("Post_total")) %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <AlternatingRowStyle CssClass="AlternatingRow Padding2" />
                                    <HeaderStyle CssClass="Header" />
                                    <SelectedRowStyle BackColor="LightGreen" />
                                    <RowStyle CssClass="Row Padding2" />
                                </asp:GridView>

                                <%--                                <asp:GridView runat="server" ID="GridResults" CssClass="table_result" AutoGenerateColumns="false">
                                    <Columns>
                                        <asp:TemplateField HeaderText="Accuracy">
                                            <ItemTemplate>
                                                <asp:Label runat="server" ForeColor="Red" Font-Size="11px" Font-Bold="true" Text='<%# eval("Accuracy") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="id">
                                            <ItemTemplate>
                                                <asp:Label runat="server" Text='<%# eval("id") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Post_Text">
                                            <ItemTemplate>
                                                <asp:Label runat="server" Text='<%# eval("Post_Text") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="utente">
                                            <ItemTemplate>
                                                <asp:Label runat="server" Text='<%# eval("attribute0") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="data" HeaderStyle-Width="150px">
                                            <ItemTemplate>
                                                <asp:Label runat="server" Text='<%# utils.conv.totimestampdate( eval("attribute1")) %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <AlternatingRowStyle CssClass="AlternatingRow Padding2" />
                                    <HeaderStyle CssClass="Header" />
                                    <SelectedRowStyle BackColor="LightGreen" />
                                    <RowStyle CssClass="Row Padding2" />
                                </asp:GridView>--%>
                            </div>
                        </div>
                    </div>
                </div>

            </ContentTemplate>
        </asp:UpdatePanel>

    </asp:Panel>
</asp:Content>
